package cn.wolfcode.luowowo.comment.repository;

import cn.wolfcode.luowowo.comment.domain.TouristComment;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TouristCommentRepository extends MongoRepository<TouristComment,String> {
    List<TouristComment> findByUserId(Long id);
    List<TouristComment> findByTouristId(Long id);
}
